package com.hl.web;

import com.hl.pojo.Consultants;
import com.hl.service.ShaiXuanService;
import com.hl.service.ShaiXuanServiceImpl;
import com.hl.util.GeneralResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ShaiXuanController {
    @Autowired
    private ShaiXuanService shaiXuanService;

    @RequestMapping("/shaixuan")
    public GeneralResult shaixuan(@RequestBody Consultants consultants){
        System.out.println("接收到的数据：" + consultants);
        GeneralResult res = shaiXuanService.shaixuan(consultants);
        System.out.println(res);
        return res;
    }
}
